import request from '@/utils/request'

//获取字典定义列表
export function getDictDefineList(params) {
	return request({
		method: 'get',
		url: 'tbSysDictDefinition/queryPageList',
		headers: { userButton: '11cf53d1dd164e1dbb1c9dee371ef73a' },
		params
	})
}

//添加字典定义
export function addedDictDefine(data) {
	return request({
		method: 'post',
		url: 'tbSysDictDefinition/add',
		headers: { userButton: 'aa41b31ba62c4c879d9b896fca011227' },
		data
	})
}

//修改字典定义
export function updateDictDefine(data) {
	return request({
		method: 'post',
		url: 'tbSysDictDefinition/update',
		headers: { userButton: 'ee9d4e5162e84592b77220cbb011b6e5' },
		data
	})
}

//删除字典定义
export function deleteDictDefine(id) {
	return request({
		method: 'get',
		url: 'tbSysDictDefinition/delete/' + id,
		headers: { userButton: 'fe70070474f344b7beb721f28a3f91c9' }
	})
}

//获取字典定义详情
export function queryDictDefine(id) {
	return request({
		method: 'get',
		url: 'tbSysDictDefinition/query/' + id,
		headers: { userButton: 'b1add3ce2fb14f67bb78bbae563ff524' }
	})
}